package com.aizhixin.lab.course.course.repository;

import com.aizhixin.lab.course.course.entity.CourseFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CourseFileRepository extends JpaRepository<CourseFile, Long> {
    void deleteByCourseId(String courseId);
    List<CourseFile> findByCourseIdAndDeleteFlag(String courseId, Integer deleteFlag);
    CourseFile findById(Long id);
}
